<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>04-background-position</title>
    <style>
        div {
            background-color: #0f0;
            background-image: url("images/icon.gif");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100px 100px;
            width: 300px;
            height: 300px;
        }
    </style>
</head>
<body>

<div></div>

</body>
</html>